package _06静态内部类;

public class Car {
    static String color;
    public static void main(String[] args) {

    }
    public static class Engine{
        private  String brand;//品牌
        //构造方法

        public Engine() {
        }

        public Engine(String brand) {
            this.brand = brand;
        }

        public String getBrand() {
            return brand;
        }

        public void setBrand(String brand) {
            this.brand = brand;
        }

        //启动方法
        public void start(){
            System.out.println(color);
            System.out.println(brand+"的发动机启动点火");
        }

        public static void stop(){
            System.out.println(color);
            System.out.println("发动机熄火");
        }

    }
}
